<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div>
        <label for="account">账号</label>
        <input type="text" id="account" name="account">
        <span id="accountmsg"></span> 

   <!--  </div>  
    <div> -->
        <button oclick="grtValue">提交</button>

    </div>
    <script>        
        function getValue(){ //点击按钮提交的时候执行getvalue方法
            let acc = document.querySelector("#accountmsg");
            let account = acc.value;
            /* acc.value = "wkj";
            console.log(acc); */
            document.querySelector("#accountmsg").innerHTML = "qweqweqwe".fontcolor("blue");
        }

    </script>
    
</body>

</html>